/**
 * Created by zpc on 2018/5/3.
 */

$(function(){
    var mySwiper1 = new Swiper('.banner_box1 .swiper-container', {
        autoplay: 300000, //可选选项，自动滑动
        pagination: '.banner_box1 .swiper-pagination', //分页器
        prevButton: '.banner_box1 .swiper-button-prev', //左点击
        nextButton: '.banner_box1 .swiper-button-next', //右点击
        //speed: 5000,
        loop: true, //环路
        observer: true,
        observeParents: true,
        autoplayDisableOnInteraction: false, //点击之后继续播放轮播图
        pagination: '.swiper-pagination',//小圆点点击事件
        paginationClickable: true, //小圆点点击事件
        slidesPerView: 1,//显示的数量
        //slidesPerGroup: 1,//显示一次跳动几张

    })
    $('.banner_box1').hover(function () {
        mySwiper1.stopAutoplay();
    }, function () {
        mySwiper1.startAutoplay();

    });
})

